package com.zt.controller;

import com.zt.entity.Result;
import com.zt.service.SubjectsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 *云计算
 *魏子纹
 *2025/7/8
 */
@RestController
public class SubjectController {
    @Autowired
    private SubjectsService subjectsService;

    // todo
    @RequestMapping("/subjects/list")
    public Result getSubjectList() {
        return Result.success("获取课程列表成功", subjectsService.list());
    }
}
